package com.yj.cmp.sdk.fusioncompute.storage.storage.vo;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author huangp
 * @create 2021-09-01 13:46
 */
@NoArgsConstructor
@Data
public class StorageDetailVo {

    @SerializedName("dataChannel")
    private List<DataChannelDTO> dataChannel;
    @SerializedName("deviceType")
    private String deviceType;
    @SerializedName("hostUrns")
    private List<HostUrnsDTO> hostUrns;
    @SerializedName("managementIp")
    private String managementIp;
    @SerializedName("managementPort")
    private Integer managementPort;
    @SerializedName("name")
    private String name;
    @SerializedName("storageType")
    private String storageType;
    @SerializedName("uri")
    private String uri;
    @SerializedName("urn")
    private String urn;
    @SerializedName("vender")
    private String vender;

    @NoArgsConstructor
    @Data
    public static class DataChannelDTO {
        @SerializedName("ip")
        private String ip;
        @SerializedName("port")
        private Integer port;
    }

    @NoArgsConstructor
    @Data
    public static class HostUrnsDTO {
        @SerializedName("name")
        private String name;
        @SerializedName("uri")
        private String uri;
        @SerializedName("urn")
        private String urn;
    }
}
